package com.taiji.dianthus.dao.sms;

import com.taiji.dianthus.domain.sms.SmsMoInfo;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SmsMoInfoRepository extends JpaRepository<SmsMoInfo, String>,
        JpaSpecificationExecutor<SmsMoInfo> {


    @Query("select t from SmsMoInfo  t where t.smsInfoId=:smsInfoId")
    List<SmsMoInfo> getBySmsInfoId(@Param("smsInfoId") String smsInfoId);
}
